<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Document</title>
</head>

<body>
  <script>
    const num = false;
    console.log(num === 0); // false
    console.log(num + 1); // 布尔值做算术运算的时候， true值为1，false值为0
  </script>
</body>

</html>